.class public Lcom/instagram/android/directshare/a/a;
.super Ljava/lang/Object;
.source "DirectLogger.java"


# direct methods
.method public static a()V
    .locals 5

    .prologue
    .line 66
    invoke-static {}, Lcom/instagram/android/directshare/j/c;->c()I

    move-result v0

    .line 67
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    new-instance v2, Lcom/instagram/b/b;

    const-string v3, "ds_inbox_error"

    const/4 v4, 0x0

    invoke-direct {v2, v3, v4}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v3, "badge"

    invoke-virtual {v2, v3, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 70
    return-void
.end method

.method public static a(I)V
    .locals 4
    .parameter

    .prologue
    .line 60
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    new-instance v1, Lcom/instagram/b/b;

    const-string v2, "ds_inbox_paging"

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v2, "posts"

    invoke-virtual {v1, v2, p0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 63
    return-void
.end method

.method public static a(Lcom/instagram/android/directshare/e/a;Z)V
    .locals 5
    .parameter
    .parameter

    .prologue
    .line 141
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    new-instance v2, Lcom/instagram/b/b;

    if-eqz p1, :cond_0

    const-string v0, "ds_pending_approve"

    :goto_0
    const/4 v3, 0x0

    invoke-direct {v2, v0, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v0, "num_requests"

    invoke-virtual {p0}, Lcom/instagram/android/directshare/e/a;->b()I

    move-result v3

    invoke-virtual {v2, v0, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v2, "sender"

    invoke-virtual {p0}, Lcom/instagram/android/directshare/e/a;->a()Lcom/instagram/android/model/b/e;

    move-result-object v3

    invoke-virtual {v3}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v2, "post_age"

    invoke-virtual {p0}, Lcom/instagram/android/directshare/e/a;->c()J

    move-result-wide v3

    long-to-double v3, v3

    invoke-static {v3, v4}, Lcom/instagram/n/e/a;->a(D)D

    move-result-wide v3

    double-to-int v3, v3

    invoke-virtual {v0, v2, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 146
    return-void

    .line 141
    :cond_0
    const-string v0, "ds_pending_ignore"

    goto :goto_0
.end method

.method public static a(Lcom/instagram/j/l;Z)V
    .locals 11
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x1

    const/4 v4, 0x0

    const/4 v1, -0x1

    const-wide/16 v9, 0x0

    .line 73
    if-eqz p0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/j/l;->ag()Z

    move-result v0

    if-nez v0, :cond_1

    .line 105
    :cond_0
    :goto_0
    return-void

    .line 77
    :cond_1
    invoke-static {p0}, Lcom/instagram/android/directshare/j/c;->a(Lcom/instagram/j/l;)Lcom/instagram/android/directshare/j/d;

    move-result-object v2

    .line 82
    invoke-virtual {p0}, Lcom/instagram/j/l;->ak()J

    move-result-wide v5

    cmp-long v0, v5, v9

    if-lez v0, :cond_5

    .line 83
    invoke-virtual {p0}, Lcom/instagram/j/l;->ak()J

    move-result-wide v5

    long-to-double v5, v5

    invoke-static {v5, v6}, Lcom/instagram/n/e/a;->a(D)D

    move-result-wide v5

    double-to-int v0, v5

    .line 85
    :goto_1
    invoke-virtual {p0}, Lcom/instagram/j/l;->aj()J

    move-result-wide v5

    cmp-long v5, v5, v9

    if-lez v5, :cond_2

    .line 86
    invoke-virtual {p0}, Lcom/instagram/j/l;->aj()J

    move-result-wide v5

    long-to-double v5, v5

    invoke-static {v5, v6}, Lcom/instagram/n/e/a;->a(D)D

    move-result-wide v5

    double-to-int v1, v5

    .line 89
    :cond_2
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v5

    new-instance v6, Lcom/instagram/b/b;

    const-string v7, "ds_post_open"

    const/4 v8, 0x0

    invoke-direct {v6, v7, v8}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v7, "share_id"

    invoke-virtual {p0}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v7, v8}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v6

    const-string v7, "sender"

    invoke-virtual {p0}, Lcom/instagram/j/l;->ah()Lcom/instagram/model/b/a;

    move-result-object v8

    invoke-virtual {v8}, Lcom/instagram/model/b/a;->a()Lcom/instagram/android/model/b/e;

    move-result-object v8

    invoke-virtual {v8}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v7, v8}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v6

    const-string v7, "is_sender"

    invoke-virtual {p0}, Lcom/instagram/j/l;->M()Z

    move-result v8

    invoke-virtual {v6, v7, v8}, Lcom/instagram/b/b;->a(Ljava/lang/String;Z)Lcom/instagram/b/b;

    move-result-object v6

    const-string v7, "has_new_comments"

    sget-object v8, Lcom/instagram/android/directshare/j/d;->c:Lcom/instagram/android/directshare/j/d;

    if-ne v2, v8, :cond_3

    move v2, v3

    :goto_2
    invoke-virtual {v6, v7, v2}, Lcom/instagram/b/b;->a(Ljava/lang/String;Z)Lcom/instagram/b/b;

    move-result-object v2

    const-string v6, "num_recipients"

    invoke-virtual {p0}, Lcom/instagram/j/l;->ai()Ljava/util/List;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    invoke-virtual {v2, v6, v7}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v2

    const-string v6, "has_liked"

    invoke-virtual {p0}, Lcom/instagram/j/l;->m()Z

    move-result v7

    invoke-virtual {v2, v6, v7}, Lcom/instagram/b/b;->a(Ljava/lang/String;Z)Lcom/instagram/b/b;

    move-result-object v2

    const-string v6, "has_read"

    invoke-virtual {p0}, Lcom/instagram/j/l;->aj()J

    move-result-wide v7

    cmp-long v7, v7, v9

    if-lez v7, :cond_4

    :goto_3
    invoke-virtual {v2, v6, v3}, Lcom/instagram/b/b;->a(Ljava/lang/String;Z)Lcom/instagram/b/b;

    move-result-object v2

    const-string v3, "post_taken_at"

    invoke-virtual {p0}, Lcom/instagram/j/l;->j()Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    invoke-virtual {v2, v3, v6, v7}, Lcom/instagram/b/b;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    move-result-object v2

    const-string v3, "post_age"

    invoke-virtual {p0}, Lcom/instagram/j/l;->j()Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    long-to-double v6, v6

    invoke-static {v6, v7}, Lcom/instagram/n/e/a;->a(D)D

    move-result-wide v6

    invoke-virtual {v2, v3, v6, v7}, Lcom/instagram/b/b;->a(Ljava/lang/String;D)Lcom/instagram/b/b;

    move-result-object v2

    const-string v3, "media_type"

    invoke-virtual {p0}, Lcom/instagram/j/l;->h()Lcom/instagram/model/a/a;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/model/a/a;->a()I

    move-result v4

    invoke-virtual {v2, v3, v4}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v2

    const-string v3, "comments"

    invoke-virtual {p0}, Lcom/instagram/j/l;->n()Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    invoke-virtual {v2, v3, v4}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v2

    const-string v3, "since_last_comment"

    invoke-virtual {v2, v3, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v2, "since_last_read"

    invoke-virtual {v0, v2, v1}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "via_push"

    invoke-virtual {v0, v1, p1}, Lcom/instagram/b/b;->a(Ljava/lang/String;Z)Lcom/instagram/b/b;

    move-result-object v0

    invoke-interface {v5, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    goto/16 :goto_0

    :cond_3
    move v2, v4

    goto :goto_2

    :cond_4
    move v3, v4

    goto :goto_3

    :cond_5
    move v0, v1

    goto/16 :goto_1
.end method

.method public static a(Ljava/util/List;)V
    .locals 4
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/directshare/e/a;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 128
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    new-instance v2, Lcom/instagram/b/b;

    const-string v0, "ds_pending"

    const/4 v3, 0x0

    invoke-direct {v2, v0, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v3, "num_requests"

    if-eqz p0, :cond_0

    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    invoke-virtual {v2, v3, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 131
    return-void

    .line 128
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static a(Z)V
    .locals 4
    .parameter

    .prologue
    .line 122
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    new-instance v1, Lcom/instagram/b/b;

    const-string v2, "camera_share_mode"

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v2, "is_direct"

    invoke-virtual {v1, v2, p0}, Lcom/instagram/b/b;->a(Ljava/lang/String;Z)Lcom/instagram/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 125
    return-void
.end method

.method public static b()V
    .locals 4

    .prologue
    .line 111
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    new-instance v1, Lcom/instagram/b/b;

    const-string v2, "ds_nux_suppressed"

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 112
    return-void
.end method

.method public static b(I)V
    .locals 4
    .parameter

    .prologue
    .line 134
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    new-instance v1, Lcom/instagram/b/b;

    const-string v2, "ds_pending_hint"

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v2, "num_requests"

    invoke-virtual {v1, v2, p0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 137
    return-void
.end method

.method public static c()V
    .locals 5

    .prologue
    .line 115
    invoke-static {}, Lcom/instagram/android/directshare/j/c;->c()I

    move-result v0

    .line 116
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v1

    new-instance v2, Lcom/instagram/b/b;

    const-string v3, "ds_nux"

    const/4 v4, 0x0

    invoke-direct {v2, v3, v4}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v3, "badge_count"

    invoke-virtual {v2, v3, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    invoke-interface {v1, v0}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 119
    return-void
.end method

.method public static c(I)V
    .locals 4
    .parameter

    .prologue
    .line 149
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    new-instance v1, Lcom/instagram/b/b;

    const-string v2, "ds_pending_ignore_all"

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v2, "num_requests"

    invoke-virtual {v1, v2, p0}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->a(Lcom/instagram/b/b;)V

    .line 152
    return-void
.end method
